package com.dongdongshop.service;

import com.dongdongshop.pojo.TbSpecification;
import com.dongdongshop.pojo.TbSpecificationOption;
import com.dongdongshop.pojo.vo.SpecVo;
import com.dongdongshop.util.PageBean;

import java.util.List;
import java.util.Map;

public interface SpecificationService {
    PageBean<TbSpecification> getSpecification(String specName, Integer pageNumber, Integer pageSize);

    void deleteBatch(Integer[] ids);

    void insertSpec(String specName, Integer[] orders, String[] optionName);

    List<SpecVo> getSpecVoById(Integer id);

    void updateSpec(TbSpecification specification, Integer[] orders, String[] optionName);

    List<TbSpecification> getSpecAllInfo();

    Map<Integer, List<TbSpecificationOption>> getSpecById(Integer[] specId);
}
